
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Go 语言运算符 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="../part9/" />
    
    
    <link rel="prev" href="../part7/" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../part1/">
            
                <a href="../part1/">
            
                    
                    Go 语言简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../part2/">
            
                <a href="../part2/">
            
                    
                    Go 语言环境安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../part3/">
            
                <a href="../part3/">
            
                    
                    Go 语言结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../part4/">
            
                <a href="../part4/">
            
                    
                    Go 语言基础语法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../part5/">
            
                <a href="../part5/">
            
                    
                    Go 语言数据类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../part6/">
            
                <a href="../part6/">
            
                    
                    Go 语言变量
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../part7/">
            
                <a href="../part7/">
            
                    
                    Go 语言常量
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.9" data-path="./">
            
                <a href="./">
            
                    
                    Go 语言运算符
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../part9/">
            
                <a href="../part9/">
            
                    
                    Go 语言条件语句
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../part10/">
            
                <a href="../part10/">
            
                    
                    Go 语言循环语句
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../part11/">
            
                <a href="../part11/">
            
                    
                    Go 语言函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../part12/">
            
                <a href="../part12/">
            
                    
                    Go 语言数组
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../part13/">
            
                <a href="../part13/">
            
                    
                    Go 语言指针
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="../part14/">
            
                <a href="../part14/">
            
                    
                    Go 语言结构体
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16" data-path="../part15/">
            
                <a href="../part15/">
            
                    
                    Go 语言切片(Slice)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17" data-path="../part16/">
            
                <a href="../part16/">
            
                    
                    Go 语言范围(Range)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.18" data-path="../part17/">
            
                <a href="../part17/">
            
                    
                    Go 语言Map(集合)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.19" data-path="../part18/">
            
                <a href="../part18/">
            
                    
                    Go 语言递归函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.20" data-path="../part19/">
            
                <a href="../part19/">
            
                    
                    Go 语言类型转换
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.21" data-path="../part20/">
            
                <a href="../part20/">
            
                    
                    Go 语言接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.22" data-path="../part21/">
            
                <a href="../part21/">
            
                    
                    Go 错误处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.23" data-path="../part22/">
            
                <a href="../part22/">
            
                    
                    Go 并发
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >Go 语言运算符</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="go-&#x8BED;&#x8A00;&#x8FD0;&#x7B97;&#x7B26;">Go &#x8BED;&#x8A00;&#x8FD0;&#x7B97;&#x7B26;</h1>
<p>&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#x8FD0;&#x7B97;&#x7B26;&#x7528;&#x4E8E;&#x5728;&#x7A0B;&#x5E8F;&#x8FD0;&#x884C;&#x65F6;&#x6267;&#x884C;&#x6570;&#x5B66;&#x6216;&#x903B;&#x8F91;&#x8FD0;&#x7B97;&#x3002;</p>
<p>Go &#x8BED;&#x8A00;&#x5185;&#x7F6E;&#x7684;&#x8FD0;&#x7B97;&#x7B26;&#x6709;&#xFF1A;</p>
<ul>
<li>&#x7B97;&#x672F;&#x8FD0;&#x7B97;&#x7B26;</li>
<li>&#x5173;&#x7CFB;&#x8FD0;&#x7B97;&#x7B26;</li>
<li>&#x903B;&#x8F91;&#x8FD0;&#x7B97;&#x7B26;</li>
<li>&#x4F4D;&#x8FD0;&#x7B97;&#x7B26;</li>
<li>&#x8D4B;&#x503C;&#x8FD0;&#x7B97;&#x7B26;</li>
<li>&#x5176;&#x4ED6;&#x8FD0;&#x7B97;&#x7B26;</li>
</ul>
<p>&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#x63A5;&#x4E0B;&#x6765;&#x8BA9;&#x6211;&#x4EEC;&#x6765;&#x8BE6;&#x7EC6;&#x770B;&#x770B;&#x5404;&#x4E2A;&#x8FD0;&#x7B97;&#x7B26;&#x7684;&#x4ECB;&#x7ECD;&#x3002;</p>
<hr>
<h2 id="&#x7B97;&#x672F;&#x8FD0;&#x7B97;&#x7B26;">&#x7B97;&#x672F;&#x8FD0;&#x7B97;&#x7B26;</h2>
<p>&#x4E0B;&#x8868;&#x5217;&#x51FA;&#x4E86;&#x6240;&#x6709;Go&#x8BED;&#x8A00;&#x7684;&#x7B97;&#x672F;&#x8FD0;&#x7B97;&#x7B26;&#x3002;&#x5047;&#x5B9A; <code>A</code> &#x503C;&#x4E3A; <code>10</code>&#xFF0C;<code>B</code> &#x503C;&#x4E3A; <code>20</code>&#x3002;</p>
<table>
    <tr>
        <th bgcolor="#4b4b4b"><font color="#ffffff">&#x8FD0;&#x7B97;&#x7B26;</font></th>
        <th bgcolor="#4b4b4b"><font color="#ffffff">&#x63CF;&#x8FF0;</font></th>
        <th bgcolor="#4b4b4b"><font color="#ffffff">&#x5B9E;&#x4F8B;</font></th>
    </tr>
    <tr>        
        <td align="center" bgcolor="#ffffff">+</td>
        <td align="center" bgcolor="#ffffff">&#x76F8;&#x52A0;</td>
        <td align="center" bgcolor="#ffffff">A + B &#x8F93;&#x51FA;&#x7ED3;&#x679C; 30</td>
    </tr>
    <tr>
        <td align="center" bgcolor="#f5f2ee">-</td>
        <td align="center" bgcolor="#f5f2ee">&#x76F8;&#x51CF;</td>
        <td align="center" bgcolor="#f5f2ee">A - B &#x8F93;&#x51FA;&#x7ED3;&#x679C; -10</td>
    </tr>
    <tr>
        <td align="center" bgcolor="#ffffff">*</td>
        <td align="center" bgcolor="#ffffff">&#x76F8;&#x4E58;</td>
        <td align="center" bgcolor="#ffffff">A * B &#x8F93;&#x51FA;&#x7ED3;&#x679C; 200</td>
    </tr>
    <tr>
        <td align="center" bgcolor="#f5f2ee">/</td>
        <td align="center" bgcolor="#f5f2ee">&#x76F8;&#x9664;</td>
        <td align="center" bgcolor="#f5f2ee">B / A &#x8F93;&#x51FA;&#x7ED3;&#x679C; 2</td>
    </tr>
    <tr>
        <td align="center" bgcolor="#ffffff">%</td>
        <td align="center" bgcolor="#ffffff">&#x6C42;&#x4F59;</td>
        <td align="center" bgcolor="#ffffff">    B % A &#x8F93;&#x51FA;&#x7ED3;&#x679C; 0</td>
    </tr>
    <tr>
        <td align="center" bgcolor="#f5f2ee">++</td>
        <td align="center" bgcolor="#f5f2ee">&#x81EA;&#x589E;</td>
        <td align="center" bgcolor="#f5f2ee">A++ &#x8F93;&#x51FA;&#x7ED3;&#x679C; 11</td>
    </tr>
    <tr>
        <td align="center" bgcolor="#ffffff">--</td>
        <td align="center" bgcolor="#ffffff">&#x81EA;&#x51CF;</td>
        <td align="center" bgcolor="#ffffff">A-- &#x8F93;&#x51FA;&#x7ED3;&#x679C; 9</td>
    </tr>

</table>

<p>&#x4EE5;&#x4E0B;&#x5B9E;&#x4F8B;&#x6F14;&#x793A;&#x4E86;&#x5404;&#x4E2A;&#x7B97;&#x672F;&#x8FD0;&#x7B97;&#x7B26;&#x7684;&#x7528;&#x6CD5;&#xFF1A;</p>
<pre><code class="lang-go"><span class="hljs-keyword">package</span> main

<span class="hljs-keyword">import</span> <span class="hljs-string">&quot;fmt&quot;</span>

<span class="hljs-keyword">func</span> main() {

   <span class="hljs-keyword">var</span> a <span class="hljs-keyword">int</span> = <span class="hljs-number">21</span>
   <span class="hljs-keyword">var</span> b <span class="hljs-keyword">int</span> = <span class="hljs-number">10</span>
   <span class="hljs-keyword">var</span> c <span class="hljs-keyword">int</span>

   c = a + b
   fmt.Printf(<span class="hljs-string">&quot;&#x7B2C;&#x4E00;&#x884C; - c &#x7684;&#x503C;&#x4E3A; %d\n&quot;</span>, c )
   c = a - b
   fmt.Printf(<span class="hljs-string">&quot;&#x7B2C;&#x4E8C;&#x884C; - c &#x7684;&#x503C;&#x4E3A; %d\n&quot;</span>, c )
   c = a * b
   fmt.Printf(<span class="hljs-string">&quot;&#x7B2C;&#x4E09;&#x884C; - c &#x7684;&#x503C;&#x4E3A; %d\n&quot;</span>, c )
   c = a / b
   fmt.Printf(<span class="hljs-string">&quot;&#x7B2C;&#x56DB;&#x884C; - c &#x7684;&#x503C;&#x4E3A; %d\n&quot;</span>, c )
   c = a % b
   fmt.Printf(<span class="hljs-string">&quot;&#x7B2C;&#x4E94;&#x884C; - c &#x7684;&#x503C;&#x4E3A; %d\n&quot;</span>, c )
   a++
   fmt.Printf(<span class="hljs-string">&quot;&#x7B2C;&#x516D;&#x884C; - a &#x7684;&#x503C;&#x4E3A; %d\n&quot;</span>, a )
   a=<span class="hljs-number">21</span>   <span class="hljs-comment">// &#x4E3A;&#x4E86;&#x65B9;&#x4FBF;&#x6D4B;&#x8BD5;&#xFF0C;a &#x8FD9;&#x91CC;&#x91CD;&#x65B0;&#x8D4B;&#x503C;&#x4E3A; 21</span>
   a--
   fmt.Printf(<span class="hljs-string">&quot;&#x7B2C;&#x4E03;&#x884C; - a &#x7684;&#x503C;&#x4E3A; %d\n&quot;</span>, a )
}
</code></pre>
<p>&#x4EE5;&#x4E0A;&#x5B9E;&#x4F8B;&#x8FD0;&#x884C;&#x7ED3;&#x679C;&#xFF1A;</p>
<pre><code class="lang-sh">&#x7B2C;&#x4E00;&#x884C; - c &#x7684;&#x503C;&#x4E3A; 31
&#x7B2C;&#x4E8C;&#x884C; - c &#x7684;&#x503C;&#x4E3A; 11
&#x7B2C;&#x4E09;&#x884C; - c &#x7684;&#x503C;&#x4E3A; 210
&#x7B2C;&#x56DB;&#x884C; - c &#x7684;&#x503C;&#x4E3A; 2
&#x7B2C;&#x4E94;&#x884C; - c &#x7684;&#x503C;&#x4E3A; 1
&#x7B2C;&#x516D;&#x884C; - a &#x7684;&#x503C;&#x4E3A; 22
&#x7B2C;&#x4E03;&#x884C; - a &#x7684;&#x503C;&#x4E3A; 20
</code></pre>
<hr>
<h2 id="&#x5173;&#x7CFB;&#x8FD0;&#x7B97;&#x7B26;">&#x5173;&#x7CFB;&#x8FD0;&#x7B97;&#x7B26;</h2>
<p>&#x4E0B;&#x8868;&#x5217;&#x51FA;&#x4E86;&#x6240;&#x6709;Go&#x8BED;&#x8A00;&#x7684;&#x5173;&#x7CFB;&#x8FD0;&#x7B97;&#x7B26;&#x3002;&#x5047;&#x5B9A; <code>A</code> &#x503C;&#x4E3A; <code>10</code>&#xFF0C;<code>B</code> &#x503C;&#x4E3A; <code>20</code>&#x3002;</p>
<table>
    <tr>
        <th bgcolor="#4b4b4b"><font color="#ffffff">&#x8FD0;&#x7B97;&#x7B26;</font></th>
        <th bgcolor="#4b4b4b"><font color="#ffffff">&#x63CF;&#x8FF0;</font></th>
        <th bgcolor="#4b4b4b"><font color="#ffffff">&#x5B9E;&#x4F8B;</font></th>
    </tr>
    <tr>        
        <td align="center" bgcolor="#ffffff">==</td>
        <td align="center" bgcolor="#ffffff">&#x68C0;&#x67E5;&#x4E24;&#x4E2A;&#x503C;&#x662F;&#x5426;&#x76F8;&#x7B49;&#xFF0C;&#x5982;&#x679C;&#x76F8;&#x7B49;&#x8FD4;&#x56DE; True &#x5426;&#x5219;&#x8FD4;&#x56DE; False&#x3002;</td>
        <td align="center" bgcolor="#ffffff">(A == B) &#x4E3A; False</td>
    </tr>
    <tr>        
        <td align="center" bgcolor="#f5f2ee">!=</td>
        <td align="center" bgcolor="#f5f2ee">&#x68C0;&#x67E5;&#x4E24;&#x4E2A;&#x503C;&#x662F;&#x5426;&#x4E0D;&#x76F8;&#x7B49;&#xFF0C;&#x5982;&#x679C;&#x4E0D;&#x76F8;&#x7B49;&#x8FD4;&#x56DE; True &#x5426;&#x5219;&#x8FD4;&#x56DE; False&#x3002;</td>
        <td align="center" bgcolor="#f5f2ee">(A != B) &#x4E3A; True</td>
    </tr>
    <tr>        
        <td align="center" bgcolor="#ffffff">&gt;</td>
        <td align="center" bgcolor="#ffffff">&#x68C0;&#x67E5;&#x5DE6;&#x8FB9;&#x503C;&#x662F;&#x5426;&#x5927;&#x4E8E;&#x53F3;&#x8FB9;&#x503C;&#xFF0C;&#x5982;&#x679C;&#x662F;&#x8FD4;&#x56DE; True &#x5426;&#x5219;&#x8FD4;&#x56DE; False&#x3002;</td>
        <td align="center" bgcolor="#ffffff">(A &gt; B) &#x4E3A; False</td>
    </tr>
    <tr>        
        <td align="center" bgcolor="#f5f2ee">&lt;</td>
        <td align="center" bgcolor="#f5f2ee">&#x68C0;&#x67E5;&#x5DE6;&#x8FB9;&#x503C;&#x662F;&#x5426;&#x5C0F;&#x4E8E;&#x53F3;&#x8FB9;&#x503C;&#xFF0C;&#x5982;&#x679C;&#x662F;&#x8FD4;&#x56DE; True &#x5426;&#x5219;&#x8FD4;&#x56DE; False&#x3002;</td>
        <td align="center" bgcolor="#f5f2ee">(A &lt; B) &#x4E3A; True</td>
    </tr>
    <tr>        
        <td align="center" bgcolor="#ffffff">&gt;=</td>
        <td align="center" bgcolor="#ffffff">&#x68C0;&#x67E5;&#x5DE6;&#x8FB9;&#x503C;&#x662F;&#x5426;&#x5927;&#x4E8E;&#x7B49;&#x4E8E;&#x53F3;&#x8FB9;&#x503C;&#xFF0C;&#x5982;&#x679C;&#x662F;&#x8FD4;&#x56DE; True &#x5426;&#x5219;&#x8FD4;&#x56DE; False&#x3002;</td>
        <td align="center" bgcolor="#ffffff">(A &gt;= B) &#x4E3A; False</td>
    </tr>
    <tr>        
        <td align="center" bgcolor="#f5f2ee"><=< td="">
        <td align="center" bgcolor="#f5f2ee">&#x68C0;&#x67E5;&#x5DE6;&#x8FB9;&#x503C;&#x662F;&#x5426;&#x5C0F;&#x4E8E;&#x7B49;&#x4E8E;&#x53F3;&#x8FB9;&#x503C;&#xFF0C;&#x5982;&#x679C;&#x662F;&#x8FD4;&#x56DE; True &#x5426;&#x5219;&#x8FD4;&#x56DE; False&#x3002;</td>
        <td align="center" bgcolor="#f5f2ee">(A <= b)="" 为="" true<="" td="">
    </=></td></=<></td></tr>
</table>

<p>&#x4EE5;&#x4E0B;&#x5B9E;&#x4F8B;&#x6F14;&#x793A;&#x4E86;&#x5173;&#x7CFB;&#x8FD0;&#x7B97;&#x7B26;&#x7684;&#x7528;&#x6CD5;&#xFF1A;</p>
<pre><code class="lang-go"><span class="hljs-keyword">package</span> main

<span class="hljs-keyword">import</span> <span class="hljs-string">&quot;fmt&quot;</span>

<span class="hljs-keyword">func</span> main() {
    <span class="hljs-keyword">var</span> a <span class="hljs-keyword">int</span> = <span class="hljs-number">21</span>
    <span class="hljs-keyword">var</span> b <span class="hljs-keyword">int</span> = <span class="hljs-number">10</span>

    <span class="hljs-keyword">if</span>( a == b ) {
        fmt.Printf(<span class="hljs-string">&quot;&#x7B2C;&#x4E00;&#x884C; - a &#x7B49;&#x4E8E; b\n&quot;</span>)
    } <span class="hljs-keyword">else</span> {
        fmt.Printf(<span class="hljs-string">&quot;&#x7B2C;&#x4E00;&#x884C; - a &#x4E0D;&#x7B49;&#x4E8E; b\n&quot;</span>)
    }
    <span class="hljs-keyword">if</span> ( a &lt; b ) {
        fmt.Printf(<span class="hljs-string">&quot;&#x7B2C;&#x4E8C;&#x884C; - a &#x5C0F;&#x4E8E; b\n&quot;</span>)
    } <span class="hljs-keyword">else</span> {
        fmt.Printf(<span class="hljs-string">&quot;&#x7B2C;&#x4E8C;&#x884C; - a &#x4E0D;&#x5C0F;&#x4E8E; b\n&quot;</span>)
    }

    <span class="hljs-keyword">if</span> ( a &gt; b ) {
        fmt.Printf(<span class="hljs-string">&quot;&#x7B2C;&#x4E09;&#x884C; - a &#x5927;&#x4E8E; b\n&quot;</span>)
    } <span class="hljs-keyword">else</span> {
        fmt.Printf(<span class="hljs-string">&quot;&#x7B2C;&#x4E09;&#x884C; - a &#x4E0D;&#x5927;&#x4E8E; b\n&quot;</span>)
    }
    <span class="hljs-comment">/* Lets change value of a and b */</span>
    a = <span class="hljs-number">5</span>
    b = <span class="hljs-number">20</span>
    <span class="hljs-keyword">if</span> ( a &lt;= b ) {
        fmt.Printf(<span class="hljs-string">&quot;&#x7B2C;&#x56DB;&#x884C; - a &#x5C0F;&#x4E8E;&#x7B49;&#x4E8E; b\n&quot;</span>)
    }
    <span class="hljs-keyword">if</span> ( b &gt;= a ) {
        fmt.Printf(<span class="hljs-string">&quot;&#x7B2C;&#x4E94;&#x884C; - b &#x5927;&#x4E8E;&#x7B49;&#x4E8E; a\n&quot;</span>)
}
</code></pre>
<p>&#x4EE5;&#x4E0A;&#x5B9E;&#x4F8B;&#x8FD0;&#x884C;&#x7ED3;&#x679C;&#xFF1A;</p>
<pre><code class="lang-go">&#x7B2C;&#x4E00;&#x884C; - a &#x4E0D;&#x7B49;&#x4E8E; b
&#x7B2C;&#x4E8C;&#x884C; - a &#x4E0D;&#x5C0F;&#x4E8E; b
&#x7B2C;&#x4E09;&#x884C; - a &#x5927;&#x4E8E; b
&#x7B2C;&#x56DB;&#x884C; - a &#x5C0F;&#x4E8E;&#x7B49;&#x4E8E; b
&#x7B2C;&#x4E94;&#x884C; - b &#x5927;&#x4E8E;&#x7B49;&#x4E8E; a
</code></pre>
<hr>
<h2 id="&#x903B;&#x8F91;&#x8FD0;&#x7B97;&#x7B26;">&#x903B;&#x8F91;&#x8FD0;&#x7B97;&#x7B26;</h2>
<p>&#x4E0B;&#x8868;&#x5217;&#x51FA;&#x4E86;&#x6240;&#x6709;Go&#x8BED;&#x8A00;&#x7684;&#x903B;&#x8F91;&#x8FD0;&#x7B97;&#x7B26;&#x3002;&#x5047;&#x5B9A; <code>A</code> &#x503C;&#x4E3A; <code>True</code>&#xFF0C;<code>B</code> &#x503C;&#x4E3A; <code>False</code>&#x3002;</p>
<table>
    <tr>
        <th bgcolor="#4b4b4b"><font color="#ffffff">&#x8FD0;&#x7B97;&#x7B26;</font></th>
        <th bgcolor="#4b4b4b"><font color="#ffffff">&#x63CF;&#x8FF0;</font></th>
        <th bgcolor="#4b4b4b"><font color="#ffffff">&#x5B9E;&#x4F8B;</font></th>
    </tr>
    <tr>        
        <td align="center" bgcolor="#ffffff">&amp;&amp;</td>
        <td align="center" bgcolor="#ffffff">&#x903B;&#x8F91; AND &#x8FD0;&#x7B97;&#x7B26;&#x3002; &#x5982;&#x679C;&#x4E24;&#x8FB9;&#x7684;&#x64CD;&#x4F5C;&#x6570;&#x90FD;&#x662F; True&#xFF0C;&#x5219;&#x6761;&#x4EF6; True&#xFF0C;&#x5426;&#x5219;&#x4E3A; False&#x3002;</td>
        <td align="center" bgcolor="#ffffff">(A &amp;&amp; B) &#x4E3A; False</td>
    </tr>
    <tr>        
        <td align="center" bgcolor="#f5f2ee">||</td>
        <td align="center" bgcolor="#f5f2ee">&#x903B;&#x8F91; OR &#x8FD0;&#x7B97;&#x7B26;&#x3002; &#x5982;&#x679C;&#x4E24;&#x8FB9;&#x7684;&#x64CD;&#x4F5C;&#x6570;&#x6709;&#x4E00;&#x4E2A; True&#xFF0C;&#x5219;&#x6761;&#x4EF6; True&#xFF0C;&#x5426;&#x5219;&#x4E3A; False&#x3002;</td>
        <td align="center" bgcolor="#f5f2ee">(A || B) &#x4E3A; True</td>
    </tr>
    <tr>        
        <td align="center" bgcolor="#ffffff">!</td>
        <td align="center" bgcolor="#ffffff">&#x903B;&#x8F91; NOT &#x8FD0;&#x7B97;&#x7B26;&#x3002; &#x5982;&#x679C;&#x6761;&#x4EF6;&#x4E3A; True&#xFF0C;&#x5219;&#x903B;&#x8F91; NOT &#x6761;&#x4EF6; False&#xFF0C;&#x5426;&#x5219;&#x4E3A; True&#x3002;</td>
        <td align="center" bgcolor="#ffffff">!(A &amp;&amp; B) &#x4E3A; True</td>
    </tr>
</table>

<p>&#x4EE5;&#x4E0B;&#x5B9E;&#x4F8B;&#x6F14;&#x793A;&#x4E86;&#x903B;&#x8F91;&#x8FD0;&#x7B97;&#x7B26;&#x7684;&#x7528;&#x6CD5;&#xFF1A;</p>
<pre><code class="lang-go"><span class="hljs-keyword">package</span> main

<span class="hljs-keyword">import</span> <span class="hljs-string">&quot;fmt&quot;</span>

<span class="hljs-keyword">func</span> main() {
    <span class="hljs-keyword">var</span> a <span class="hljs-keyword">bool</span> = <span class="hljs-literal">true</span>
    <span class="hljs-keyword">var</span> b <span class="hljs-keyword">bool</span> = <span class="hljs-literal">false</span>
    <span class="hljs-keyword">if</span> a &amp;&amp; b {
        fmt.Printf(<span class="hljs-string">&quot;&#x7B2C;&#x4E00;&#x884C; - &#x6761;&#x4EF6;&#x4E3A; true\n&quot;</span>)
    }
    <span class="hljs-keyword">if</span> a || b  {
        fmt.Printf(<span class="hljs-string">&quot;&#x7B2C;&#x4E8C;&#x884C; - &#x6761;&#x4EF6;&#x4E3A; true\n&quot;</span>)
    }
    <span class="hljs-comment">/* &#x4FEE;&#x6539; a &#x548C; b &#x7684;&#x503C; */</span>
    a = <span class="hljs-literal">false</span>
    b = <span class="hljs-literal">true</span>
    <span class="hljs-keyword">if</span> a &amp;&amp; b {
        fmt.Printf(<span class="hljs-string">&quot;&#x7B2C;&#x4E09;&#x884C; - &#x6761;&#x4EF6;&#x4E3A; true\n&quot;</span>)
    } <span class="hljs-keyword">else</span> {
        fmt.Printf(<span class="hljs-string">&quot;&#x7B2C;&#x4E09;&#x884C; - &#x6761;&#x4EF6;&#x4E3A; false\n&quot;</span>)
    }
    <span class="hljs-keyword">if</span> !(a &amp;&amp; b) {
        fmt.Printf(<span class="hljs-string">&quot;&#x7B2C;&#x56DB;&#x884C; - &#x6761;&#x4EF6;&#x4E3A; true\n&quot;</span>)
    }
}
</code></pre>
<p>&#x4EE5;&#x4E0A;&#x5B9E;&#x4F8B;&#x8FD0;&#x884C;&#x7ED3;&#x679C;&#xFF1A;</p>
<pre><code class="lang-sh">&#x7B2C;&#x4E8C;&#x884C; - &#x6761;&#x4EF6;&#x4E3A; <span class="hljs-literal">true</span>
&#x7B2C;&#x4E09;&#x884C; - &#x6761;&#x4EF6;&#x4E3A; <span class="hljs-literal">false</span>
&#x7B2C;&#x56DB;&#x884C; - &#x6761;&#x4EF6;&#x4E3A; <span class="hljs-literal">true</span>
</code></pre>
<hr>
<h2 id="&#x4F4D;&#x8FD0;&#x7B97;&#x7B26;">&#x4F4D;&#x8FD0;&#x7B97;&#x7B26;</h2>
<p>&#x4F4D;&#x8FD0;&#x7B97;&#x7B26;&#x5BF9;&#x6574;&#x6570;&#x5728;&#x5185;&#x5B58;&#x4E2D;&#x7684;&#x4E8C;&#x8FDB;&#x5236;&#x4F4D;&#x8FDB;&#x884C;&#x64CD;&#x4F5C;&#x3002;</p>
<p>&#x4E0B;&#x8868;&#x5217;&#x51FA;&#x4E86;&#x4F4D;&#x8FD0;&#x7B97;&#x7B26; <code>&amp;</code>&#x3001; <code>|</code> &#x548C; <code>^</code> &#x7684;&#x8BA1;&#x7B97;&#xFF1A;</p>
<table>
    <tr>
        <th bgcolor="#4b4b4b"><font color="#ffffff">P</font></th>
        <th bgcolor="#4b4b4b"><font color="#ffffff">q</font></th>
        <th bgcolor="#4b4b4b"><font color="#ffffff">p&amp;q</font></th>
        <th bgcolor="#4b4b4b"><font color="#ffffff">p|q</font></th>
        <th bgcolor="#4b4b4b"><font color="#ffffff">p^q</font></th>
    </tr>
    <tr>        
        <td align="center" bgcolor="#ffffff">0</td>
        <td align="center" bgcolor="#ffffff">0</td>
        <td align="center" bgcolor="#ffffff">0</td>
        <td align="center" bgcolor="#ffffff">0</td>
        <td align="center" bgcolor="#ffffff">0</td>
    </tr>
    <tr>        
        <td align="center" bgcolor="#f5f2ee">0</td>
        <td align="center" bgcolor="#f5f2ee">1</td>
        <td align="center" bgcolor="#f5f2ee">0</td>
        <td align="center" bgcolor="#f5f2ee">1</td>
        <td align="center" bgcolor="#f5f2ee">1</td>
    </tr>
    <tr>        
        <td align="center" bgcolor="#ffffff">1</td>
        <td align="center" bgcolor="#ffffff">1</td>
        <td align="center" bgcolor="#ffffff">1</td>
        <td align="center" bgcolor="#ffffff">1</td>
        <td align="center" bgcolor="#ffffff">0</td>
    </tr>
    <tr>        
        <td align="center" bgcolor="#f5f2ee">1</td>
        <td align="center" bgcolor="#f5f2ee">0</td>
        <td align="center" bgcolor="#f5f2ee">0</td>
        <td align="center" bgcolor="#f5f2ee">1</td>
        <td align="center" bgcolor="#f5f2ee">1</td>
    </tr>
</table>

<p>&#x5047;&#x5B9A; A = 60; B = 13; &#x5176;&#x4E8C;&#x8FDB;&#x5236;&#x6570;&#x8F6C;&#x6362;&#x4E3A;&#xFF1A;</p>
<pre><code class="lang-sh">A = 0011 1100

B = 0000 1101

-----------------

A&amp;B = 0000 1100

A|B = 0011 1101

A^B = 0011 0001
</code></pre>
<p>Go &#x8BED;&#x8A00;&#x652F;&#x6301;&#x7684;&#x4F4D;&#x8FD0;&#x7B97;&#x7B26;&#x5982;&#x4E0B;&#x8868;&#x6240;&#x793A;&#x3002;&#x5047;&#x5B9A; <code>A</code> &#x4E3A;<code>60</code>&#xFF0C;<code>B</code> &#x4E3A;<code>13</code>&#xFF1A;</p>
<table>
    <tr>
        <th bgcolor="#4b4b4b"><font color="#ffffff">&#x8FD0;&#x7B97;&#x7B26;</font></th>
        <th bgcolor="#4b4b4b"><font color="#ffffff">&#x63CF;&#x8FF0;</font></th>
        <th bgcolor="#4b4b4b"><font color="#ffffff">&#x5B9E;&#x4F8B;</font></th>
    </tr>
    <tr>        
        <td align="center" bgcolor="#ffffff">&amp;</td>
        <td align="center" bgcolor="#ffffff">&#x6309;&#x4F4D;&#x4E0E;&#x8FD0;&#x7B97;&#x7B26;&quot;&amp;&quot;&#x662F;&#x53CC;&#x76EE;&#x8FD0;&#x7B97;&#x7B26;&#x3002; &#x5176;&#x529F;&#x80FD;&#x662F;&#x53C2;&#x4E0E;&#x8FD0;&#x7B97;&#x7684;&#x4E24;&#x6570;&#x5404;&#x5BF9;&#x5E94;&#x7684;&#x4E8C;&#x8FDB;&#x4F4D;&#x76F8;&#x4E0E;&#x3002;</td>
        <td align="center" bgcolor="#ffffff">(A &amp; B) &#x7ED3;&#x679C;&#x4E3A; 12, &#x4E8C;&#x8FDB;&#x5236;&#x4E3A; 0000 1100</td>
    </tr>
    <tr>        
        <td align="center" bgcolor="#f5f2ee">|</td>
        <td align="center" bgcolor="#f5f2ee">&#x6309;&#x4F4D;&#x6216;&#x8FD0;&#x7B97;&#x7B26;&quot;|&quot;&#x662F;&#x53CC;&#x76EE;&#x8FD0;&#x7B97;&#x7B26;&#x3002; &#x5176;&#x529F;&#x80FD;&#x662F;&#x53C2;&#x4E0E;&#x8FD0;&#x7B97;&#x7684;&#x4E24;&#x6570;&#x5404;&#x5BF9;&#x5E94;&#x7684;&#x4E8C;&#x8FDB;&#x4F4D;&#x76F8;&#x6216;</td>
        <td align="center" bgcolor="#f5f2ee">(A | B) &#x7ED3;&#x679C;&#x4E3A; 61, &#x4E8C;&#x8FDB;&#x5236;&#x4E3A; 0011 1101</td>
    </tr>
    <tr>        
        <td align="center" bgcolor="#ffffff">^</td>
        <td align="center" bgcolor="#ffffff">&#x6309;&#x4F4D;&#x5F02;&#x6216;&#x8FD0;&#x7B97;&#x7B26;&quot;^&quot;&#x662F;&#x53CC;&#x76EE;&#x8FD0;&#x7B97;&#x7B26;&#x3002; &#x5176;&#x529F;&#x80FD;&#x662F;&#x53C2;&#x4E0E;&#x8FD0;&#x7B97;&#x7684;&#x4E24;&#x6570;&#x5404;&#x5BF9;&#x5E94;&#x7684;&#x4E8C;&#x8FDB;&#x4F4D;&#x76F8;&#x5F02;&#x6216;&#xFF0C;&#x5F53;&#x4E24;&#x5BF9;&#x5E94;&#x7684;&#x4E8C;&#x8FDB;&#x4F4D;&#x76F8;&#x5F02;&#x65F6;&#xFF0C;&#x7ED3;&#x679C;&#x4E3A;1&#x3002;</td>
        <td align="center" bgcolor="#ffffff">(A ^ B) &#x7ED3;&#x679C;&#x4E3A; 49, &#x4E8C;&#x8FDB;&#x5236;&#x4E3A; 0011 0001</td>
    </tr>
    <tr>        
        <td align="center" bgcolor="#f5f2ee">&lt;&lt;</td>
        <td align="center" bgcolor="#f5f2ee">&#x5DE6;&#x79FB;&#x8FD0;&#x7B97;&#x7B26;&quot;&lt;<"是双目运算符。左移n位就是乘以2的n次方。 其功能把"<<"左边的运算数的各二进位全部左移若干位，由"<<"右边的数指定移动的位数，高位丢弃，低位补0。<="" td="">
        <td align="center" bgcolor="#f5f2ee">A &lt;&lt; 2 &#x7ED3;&#x679C;&#x4E3A; 240 &#xFF0C;&#x4E8C;&#x8FDB;&#x5236;&#x4E3A; 1111 0000</td>
    </"是双目运算符。左移n位就是乘以2的n次方。></td></tr>
    <tr>        
        <td align="center" bgcolor="#ffffff">&gt;&gt;</td>
        <td align="center" bgcolor="#ffffff">&#x53F3;&#x79FB;&#x8FD0;&#x7B97;&#x7B26;&quot;&gt;&gt;&quot;&#x662F;&#x53CC;&#x76EE;&#x8FD0;&#x7B97;&#x7B26;&#x3002;&#x53F3;&#x79FB;n&#x4F4D;&#x5C31;&#x662F;&#x9664;&#x4EE5;2&#x7684;n&#x6B21;&#x65B9;&#x3002; &#x5176;&#x529F;&#x80FD;&#x662F;&#x628A;&quot;&gt;&gt;&quot;&#x5DE6;&#x8FB9;&#x7684;&#x8FD0;&#x7B97;&#x6570;&#x7684;&#x5404;&#x4E8C;&#x8FDB;&#x4F4D;&#x5168;&#x90E8;&#x53F3;&#x79FB;&#x82E5;&#x5E72;&#x4F4D;&#xFF0C;&quot;&gt;&gt;&quot;&#x53F3;&#x8FB9;&#x7684;&#x6570;&#x6307;&#x5B9A;&#x79FB;&#x52A8;&#x7684;&#x4F4D;&#x6570;&#x3002;</td>
        <td align="center" bgcolor="#ffffff">A &gt;&gt; 2 &#x7ED3;&#x679C;&#x4E3A; 15 &#xFF0C;&#x4E8C;&#x8FDB;&#x5236;&#x4E3A; 0000 1111
        </td>
    </tr>
</table>

<p>&#x4EE5;&#x4E0B;&#x5B9E;&#x4F8B;&#x6F14;&#x793A;&#x4E86;&#x4F4D;&#x8FD0;&#x7B97;&#x7B26;&#x7684;&#x7528;&#x6CD5;&#xFF1A;</p>
<pre><code class="lang-go"><span class="hljs-keyword">package</span> main

<span class="hljs-keyword">import</span> <span class="hljs-string">&quot;fmt&quot;</span>

<span class="hljs-keyword">func</span> main() {
    <span class="hljs-keyword">var</span> a <span class="hljs-keyword">uint</span> = <span class="hljs-number">60</span>      <span class="hljs-comment">/* 60 = 0011 1100 */</span>  
    <span class="hljs-keyword">var</span> b <span class="hljs-keyword">uint</span> = <span class="hljs-number">13</span>      <span class="hljs-comment">/* 13 = 0000 1101 */</span>
    <span class="hljs-keyword">var</span> c <span class="hljs-keyword">uint</span> = <span class="hljs-number">0</span>          

    c = a &amp; b       <span class="hljs-comment">/* 12 = 0000 1100 */</span>
    fmt.Printf(<span class="hljs-string">&quot;&#x7B2C;&#x4E00;&#x884C; - c &#x7684;&#x503C;&#x4E3A; %d\n&quot;</span>, c )

    c = a | b       <span class="hljs-comment">/* 61 = 0011 1101 */</span>
    fmt.Printf(<span class="hljs-string">&quot;&#x7B2C;&#x4E8C;&#x884C; - c &#x7684;&#x503C;&#x4E3A; %d\n&quot;</span>, c )

    c = a ^ b       <span class="hljs-comment">/* 49 = 0011 0001 */</span>
    fmt.Printf(<span class="hljs-string">&quot;&#x7B2C;&#x4E09;&#x884C; - c &#x7684;&#x503C;&#x4E3A; %d\n&quot;</span>, c )

    c = a &lt;&lt; <span class="hljs-number">2</span>     <span class="hljs-comment">/* 240 = 1111 0000 */</span>
    fmt.Printf(<span class="hljs-string">&quot;&#x7B2C;&#x56DB;&#x884C; - c &#x7684;&#x503C;&#x4E3A; %d\n&quot;</span>, c )

    c = a &gt;&gt; <span class="hljs-number">2</span>     <span class="hljs-comment">/* 15 = 0000 1111 */</span>
    fmt.Printf(<span class="hljs-string">&quot;&#x7B2C;&#x4E94;&#x884C; - c &#x7684;&#x503C;&#x4E3A; %d\n&quot;</span>, c )
}
</code></pre>
<p>&#x4EE5;&#x4E0A;&#x5B9E;&#x4F8B;&#x8FD0;&#x884C;&#x7ED3;&#x679C;&#xFF1A;</p>
<pre><code class="lang-sh">&#x7B2C;&#x4E00;&#x884C; - c &#x7684;&#x503C;&#x4E3A; 12
&#x7B2C;&#x4E8C;&#x884C; - c &#x7684;&#x503C;&#x4E3A; 61
&#x7B2C;&#x4E09;&#x884C; - c &#x7684;&#x503C;&#x4E3A; 49
&#x7B2C;&#x56DB;&#x884C; - c &#x7684;&#x503C;&#x4E3A; 240
&#x7B2C;&#x4E94;&#x884C; - c &#x7684;&#x503C;&#x4E3A; 15
</code></pre>
<hr>
<h2 id="&#x8D4B;&#x503C;&#x8FD0;&#x7B97;&#x7B26;">&#x8D4B;&#x503C;&#x8FD0;&#x7B97;&#x7B26;</h2>
<p>&#x4E0B;&#x8868;&#x5217;&#x51FA;&#x4E86;&#x6240;&#x6709;Go&#x8BED;&#x8A00;&#x7684;&#x8D4B;&#x503C;&#x8FD0;&#x7B97;&#x7B26;&#x3002;</p>
<table>
    <tr>
        <th bgcolor="#4b4b4b"><font color="#ffffff">&#x8FD0;&#x7B97;&#x7B26;</font></th>
        <th bgcolor="#4b4b4b"><font color="#ffffff">&#x63CF;&#x8FF0;</font></th>
        <th bgcolor="#4b4b4b"><font color="#ffffff">&#x5B9E;&#x4F8B;</font></th>
    </tr>
    <tr>        
        <td align="center" bgcolor="#ffffff">=</td>
        <td align="center" bgcolor="#ffffff">&#x7B80;&#x5355;&#x7684;&#x8D4B;&#x503C;&#x8FD0;&#x7B97;&#x7B26;&#xFF0C;&#x5C06;&#x4E00;&#x4E2A;&#x8868;&#x8FBE;&#x5F0F;&#x7684;&#x503C;&#x8D4B;&#x7ED9;&#x4E00;&#x4E2A;&#x5DE6;&#x503C;</td>
        <td align="center" bgcolor="#ffffff">C = A + B &#x5C06; A + B &#x8868;&#x8FBE;&#x5F0F;&#x7ED3;&#x679C;&#x8D4B;&#x503C;&#x7ED9; C</td>
    </tr>
    <tr>        
        <td align="center" bgcolor="#f5f2ee">+=</td>
        <td align="center" bgcolor="#f5f2ee">&#x76F8;&#x52A0;&#x540E;&#x518D;&#x8D4B;&#x503C;</td>
        <td align="center" bgcolor="#f5f2ee">C += A &#x7B49;&#x4E8E; C = C + A</td>
    </tr>
    <tr>        
        <td align="center" bgcolor="#ffffff">-=</td>
        <td align="center" bgcolor="#ffffff">&#x76F8;&#x51CF;&#x540E;&#x518D;&#x8D4B;&#x503C;</td>
        <td align="center" bgcolor="#ffffff">C -= A &#x7B49;&#x4E8E; C = C - A</td>
    </tr>
    <tr>        
        <td align="center" bgcolor="#f5f2ee">*=</td>
        <td align="center" bgcolor="#f5f2ee">&#x76F8;&#x4E58;&#x540E;&#x518D;&#x8D4B;&#x503C;</td>
        <td align="center" bgcolor="#f5f2ee">C *= A &#x7B49;&#x4E8E; C = C * A</td>
    </tr>
    <tr>        
        <td align="center" bgcolor="#ffffff">/=</td>
        <td align="center" bgcolor="#ffffff">&#x76F8;&#x9664;&#x540E;&#x518D;&#x8D4B;&#x503C;</td>
        <td align="center" bgcolor="#ffffff">C /= A &#x7B49;&#x4E8E; C = C / A</td>
    </tr>
    <tr>        
        <td align="center" bgcolor="#f5f2ee">%=</td>
        <td align="center" bgcolor="#f5f2ee">&#x6C42;&#x4F59;&#x540E;&#x518D;&#x8D4B;&#x503C;</td>
        <td align="center" bgcolor="#f5f2ee">C %= A &#x7B49;&#x4E8E; C = C % A</td>
    </tr>
    <tr>        
        <td align="center" bgcolor="#ffffff">&lt;<=< td="">
        <td align="center" bgcolor="#ffffff">&#x5DE6;&#x79FB;&#x540E;&#x8D4B;&#x503C;</td>
        <td align="center" bgcolor="#ffffff">C &lt;<= 2="" 等于="" c="C" <<="" 2<="" td="">
    </=></td></=<></td></tr>
    <tr>        
        <td align="center" bgcolor="#f5f2ee">&gt;&gt;=</td>
        <td align="center" bgcolor="#f5f2ee">&#x53F3;&#x79FB;&#x540E;&#x8D4B;&#x503C;</td>
        <td align="center" bgcolor="#f5f2ee">C &gt;&gt;= 2 &#x7B49;&#x4E8E; C = C &gt;&gt; 2</td>
    </tr>
    <tr>        
        <td align="center" bgcolor="#ffffff">&amp;=</td>
        <td align="center" bgcolor="#ffffff">&#x6309;&#x4F4D;&#x4E0E;&#x540E;&#x8D4B;&#x503C;</td>
        <td align="center" bgcolor="#ffffff">C &amp;= 2 &#x7B49;&#x4E8E; C = C &amp; 2</td>
    </tr>
    <tr>        
        <td align="center" bgcolor="#f5f2ee">^=</td>
        <td align="center" bgcolor="#f5f2ee">&#x6309;&#x4F4D;&#x5F02;&#x6216;&#x540E;&#x8D4B;&#x503C;</td>
        <td align="center" bgcolor="#f5f2ee">C ^= 2 &#x7B49;&#x4E8E; C = C ^ 2</td>
    </tr>
    <tr>        
        <td align="center" bgcolor="#ffffff">|=</td>
        <td align="center" bgcolor="#ffffff">&#x6309;&#x4F4D;&#x6216;&#x540E;&#x8D4B;&#x503C;</td>
        <td align="center" bgcolor="#ffffff">    C |= 2 &#x7B49;&#x4E8E; C = C | 2</td>
    </tr>
</table>

<p>&#x4EE5;&#x4E0B;&#x5B9E;&#x4F8B;&#x6F14;&#x793A;&#x4E86;&#x8D4B;&#x503C;&#x8FD0;&#x7B97;&#x7B26;&#x7684;&#x7528;&#x6CD5;&#xFF1A;</p>
<pre><code class="lang-go"><span class="hljs-keyword">package</span> main

<span class="hljs-keyword">import</span> <span class="hljs-string">&quot;fmt&quot;</span>

<span class="hljs-keyword">func</span> main() {
    <span class="hljs-keyword">var</span> a <span class="hljs-keyword">int</span> = <span class="hljs-number">21</span>
    <span class="hljs-keyword">var</span> c <span class="hljs-keyword">int</span>

    c =  a
    fmt.Printf(<span class="hljs-string">&quot;&#x7B2C; 1 &#x884C; - =  &#x8FD0;&#x7B97;&#x7B26;&#x5B9E;&#x4F8B;&#xFF0C;c &#x503C;&#x4E3A; = %d\n&quot;</span>, c)

    c +=  a
    fmt.Printf(<span class="hljs-string">&quot;&#x7B2C; 2 &#x884C; - += &#x8FD0;&#x7B97;&#x7B26;&#x5B9E;&#x4F8B;&#xFF0C;c &#x503C;&#x4E3A; = %d\n&quot;</span>, c)

    c -=  a
    fmt.Printf(<span class="hljs-string">&quot;&#x7B2C; 3 &#x884C; - -= &#x8FD0;&#x7B97;&#x7B26;&#x5B9E;&#x4F8B;&#xFF0C;c &#x503C;&#x4E3A; = %d\n&quot;</span>, c)

    c *=  a
    fmt.Printf(<span class="hljs-string">&quot;&#x7B2C; 4 &#x884C; - *= &#x8FD0;&#x7B97;&#x7B26;&#x5B9E;&#x4F8B;&#xFF0C;c &#x503C;&#x4E3A; = %d\n&quot;</span>, c)

    c /=  a
    fmt.Printf(<span class="hljs-string">&quot;&#x7B2C; 5 &#x884C; - /= &#x8FD0;&#x7B97;&#x7B26;&#x5B9E;&#x4F8B;&#xFF0C;c &#x503C;&#x4E3A; = %d\n&quot;</span>, c)

    c  = <span class="hljs-number">200</span>;

    c &lt;&lt;=  <span class="hljs-number">2</span>
    fmt.Printf(<span class="hljs-string">&quot;&#x7B2C; 6&#x884C;  - &lt;&lt;= &#x8FD0;&#x7B97;&#x7B26;&#x5B9E;&#x4F8B;&#xFF0C;c &#x503C;&#x4E3A; = %d\n&quot;</span>, c)

    c &gt;&gt;=  <span class="hljs-number">2</span>
    fmt.Printf(<span class="hljs-string">&quot;&#x7B2C; 7 &#x884C; - &gt;&gt;= &#x8FD0;&#x7B97;&#x7B26;&#x5B9E;&#x4F8B;&#xFF0C;c &#x503C;&#x4E3A; = %d\n&quot;</span>, c)

    c &amp;=  <span class="hljs-number">2</span>
    fmt.Printf(<span class="hljs-string">&quot;&#x7B2C; 8 &#x884C; - &amp;= &#x8FD0;&#x7B97;&#x7B26;&#x5B9E;&#x4F8B;&#xFF0C;c &#x503C;&#x4E3A; = %d\n&quot;</span>, c)

    c ^=  <span class="hljs-number">2</span>
    fmt.Printf(<span class="hljs-string">&quot;&#x7B2C; 9 &#x884C; - ^= &#x8FD0;&#x7B97;&#x7B26;&#x5B9E;&#x4F8B;&#xFF0C;c &#x503C;&#x4E3A; = %d\n&quot;</span>, c)

    c |=  <span class="hljs-number">2</span>
    fmt.Printf(<span class="hljs-string">&quot;&#x7B2C; 10 &#x884C; - |= &#x8FD0;&#x7B97;&#x7B26;&#x5B9E;&#x4F8B;&#xFF0C;c &#x503C;&#x4E3A; = %d\n&quot;</span>, c)

}
</code></pre>
<p>&#x4EE5;&#x4E0A;&#x5B9E;&#x4F8B;&#x8FD0;&#x884C;&#x7ED3;&#x679C;&#xFF1A;</p>
<pre><code class="lang-sh">&#x7B2C; 1 &#x884C; - =  &#x8FD0;&#x7B97;&#x7B26;&#x5B9E;&#x4F8B;&#xFF0C;c &#x503C;&#x4E3A; = 21
&#x7B2C; 2 &#x884C; - += &#x8FD0;&#x7B97;&#x7B26;&#x5B9E;&#x4F8B;&#xFF0C;c &#x503C;&#x4E3A; = 42
&#x7B2C; 3 &#x884C; - -= &#x8FD0;&#x7B97;&#x7B26;&#x5B9E;&#x4F8B;&#xFF0C;c &#x503C;&#x4E3A; = 21
&#x7B2C; 4 &#x884C; - *= &#x8FD0;&#x7B97;&#x7B26;&#x5B9E;&#x4F8B;&#xFF0C;c &#x503C;&#x4E3A; = 441
&#x7B2C; 5 &#x884C; - /= &#x8FD0;&#x7B97;&#x7B26;&#x5B9E;&#x4F8B;&#xFF0C;c &#x503C;&#x4E3A; = 21
&#x7B2C; 6&#x884C;  - &lt;&lt;= &#x8FD0;&#x7B97;&#x7B26;&#x5B9E;&#x4F8B;&#xFF0C;c &#x503C;&#x4E3A; = 800
&#x7B2C; 7 &#x884C; - &gt;&gt;= &#x8FD0;&#x7B97;&#x7B26;&#x5B9E;&#x4F8B;&#xFF0C;c &#x503C;&#x4E3A; = 200
&#x7B2C; 8 &#x884C; - &amp;= &#x8FD0;&#x7B97;&#x7B26;&#x5B9E;&#x4F8B;&#xFF0C;c &#x503C;&#x4E3A; = 0
&#x7B2C; 9 &#x884C; - ^= &#x8FD0;&#x7B97;&#x7B26;&#x5B9E;&#x4F8B;&#xFF0C;c &#x503C;&#x4E3A; = 2
&#x7B2C; 10 &#x884C; - |= &#x8FD0;&#x7B97;&#x7B26;&#x5B9E;&#x4F8B;&#xFF0C;c &#x503C;&#x4E3A; = 2
</code></pre>
<hr>
<h2 id="&#x5176;&#x4ED6;&#x8FD0;&#x7B97;&#x7B26;">&#x5176;&#x4ED6;&#x8FD0;&#x7B97;&#x7B26;</h2>
<p>&#x4E0B;&#x8868;&#x5217;&#x51FA;&#x4E86;Go&#x8BED;&#x8A00;&#x7684;&#x5176;&#x4ED6;&#x8FD0;&#x7B97;&#x7B26;&#x3002;</p>
<table>
    <tr>
        <th bgcolor="#4b4b4b"><font color="#ffffff">&#x8FD0;&#x7B97;&#x7B26;</font></th>
        <th bgcolor="#4b4b4b"><font color="#ffffff">&#x63CF;&#x8FF0;</font></th>
        <th bgcolor="#4b4b4b"><font color="#ffffff">&#x5B9E;&#x4F8B;</font></th>
    </tr>
    <tr>        
        <td align="center" bgcolor="#ffffff">&amp;</td>
        <td align="center" bgcolor="#ffffff">&#x8FD4;&#x56DE;&#x53D8;&#x91CF;&#x5B58;&#x50A8;&#x5730;&#x5740;</td>
        <td align="center" bgcolor="#ffffff">&amp;a &#x5C06;&#x7ED9;&#x51FA;&#x53D8;&#x91CF;&#x7684;&#x5B9E;&#x9645;&#x5730;&#x5740;&#x3002;</td>
    </tr>
    <tr>        
        <td align="center" bgcolor="#f5f2ee">*</td>
        <td align="center" bgcolor="#f5f2ee">&#x6307;&#x9488;&#x53D8;&#x91CF;</td>
        <td align="center" bgcolor="#f5f2ee">*a &#x662F;&#x4E00;&#x4E2A;&#x6307;&#x9488;&#x53D8;&#x91CF;</td>
    </tr>
</table>

<p>&#x4EE5;&#x4E0B;&#x5B9E;&#x4F8B;&#x6F14;&#x793A;&#x4E86;&#x5176;&#x4ED6;&#x8FD0;&#x7B97;&#x7B26;&#x7684;&#x7528;&#x6CD5;&#xFF1A;</p>
<pre><code class="lang-go"><span class="hljs-keyword">package</span> main

<span class="hljs-keyword">import</span> <span class="hljs-string">&quot;fmt&quot;</span>

<span class="hljs-keyword">func</span> main() {
    <span class="hljs-keyword">var</span> a <span class="hljs-keyword">int</span> = <span class="hljs-number">4</span>
    <span class="hljs-keyword">var</span> b <span class="hljs-keyword">int32</span>
    <span class="hljs-keyword">var</span> c <span class="hljs-keyword">float32</span>
    <span class="hljs-keyword">var</span> ptr *<span class="hljs-keyword">int</span>

    <span class="hljs-comment">/* &#x8FD0;&#x7B97;&#x7B26;&#x5B9E;&#x4F8B; */</span>
    fmt.Printf(<span class="hljs-string">&quot;&#x7B2C; 1 &#x884C; - a &#x53D8;&#x91CF;&#x7C7B;&#x578B;&#x4E3A; = %T\n&quot;</span>, a)
    fmt.Printf(<span class="hljs-string">&quot;&#x7B2C; 2 &#x884C; - b &#x53D8;&#x91CF;&#x7C7B;&#x578B;&#x4E3A; = %T\n&quot;</span>, b)
    fmt.Printf(<span class="hljs-string">&quot;&#x7B2C; 3 &#x884C; - c &#x53D8;&#x91CF;&#x7C7B;&#x578B;&#x4E3A; = %T\n&quot;</span>, c)

    <span class="hljs-comment">/*  &amp; &#x548C; * &#x8FD0;&#x7B97;&#x7B26;&#x5B9E;&#x4F8B; */</span>
    ptr = &amp;a     <span class="hljs-comment">/* &apos;ptr&apos; &#x5305;&#x542B;&#x4E86; &apos;a&apos; &#x53D8;&#x91CF;&#x7684;&#x5730;&#x5740; */</span>
    fmt.Printf(<span class="hljs-string">&quot;a &#x7684;&#x503C;&#x4E3A;  %d\n&quot;</span>, a)
    fmt.Printf(<span class="hljs-string">&quot;*ptr &#x4E3A; %d\n&quot;</span>, *ptr)
}
</code></pre>
<p>&#x4EE5;&#x4E0A;&#x5B9E;&#x4F8B;&#x8FD0;&#x884C;&#x7ED3;&#x679C;&#xFF1A;</p>
<pre><code class="lang-sh">&#x7B2C; 1 &#x884C; - a &#x53D8;&#x91CF;&#x7C7B;&#x578B;&#x4E3A; = int
&#x7B2C; 2 &#x884C; - b &#x53D8;&#x91CF;&#x7C7B;&#x578B;&#x4E3A; = int32
&#x7B2C; 3 &#x884C; - c &#x53D8;&#x91CF;&#x7C7B;&#x578B;&#x4E3A; = <span class="hljs-built_in">float</span>32
a &#x7684;&#x503C;&#x4E3A;  4
*ptr &#x4E3A; 4
</code></pre>
<hr>
<h2 id="&#x8FD0;&#x7B97;&#x7B26;&#x4F18;&#x5148;&#x7EA7;">&#x8FD0;&#x7B97;&#x7B26;&#x4F18;&#x5148;&#x7EA7;</h2>
<p>&#x6709;&#x4E9B;&#x8FD0;&#x7B97;&#x7B26;&#x62E5;&#x6709;&#x8F83;&#x9AD8;&#x7684;&#x4F18;&#x5148;&#x7EA7;&#xFF0C;&#x4E8C;&#x5143;&#x8FD0;&#x7B97;&#x7B26;&#x7684;&#x8FD0;&#x7B97;&#x65B9;&#x5411;&#x5747;&#x662F;&#x4ECE;&#x5DE6;&#x81F3;&#x53F3;&#x3002;&#x4E0B;&#x8868;&#x5217;&#x51FA;&#x4E86;&#x6240;&#x6709;&#x8FD0;&#x7B97;&#x7B26;&#x4EE5;&#x53CA;&#x5B83;&#x4EEC;&#x7684;&#x4F18;&#x5148;&#x7EA7;&#xFF0C;&#x7531;&#x4E0A;&#x81F3;&#x4E0B;&#x4EE3;&#x8868;&#x4F18;&#x5148;&#x7EA7;&#x7531;&#x9AD8;&#x5230;&#x4F4E;&#xFF1A;</p>
<table>
    <tr>
        <th bgcolor="#4b4b4b"><font color="#ffffff">&#x4F18;&#x5148;&#x7EA7;</font></th>
        <th bgcolor="#4b4b4b"><font color="#ffffff">&#x8FD0;&#x7B97;&#x7B26;</font></th>
    </tr>
    <tr>        
        <td align="center" bgcolor="#ffffff">5</td>
        <td align="center" bgcolor="#ffffff">*&#x3001;/&#x3001;%&#x3001;&lt;<、>&gt;&#x3001;&amp;</、></td>
    </tr>
    <tr>        
        <td align="center" bgcolor="#f5f2ee">4</td>
        <td align="center" bgcolor="#f5f2ee">+&#x3001;-&#x3001;|&#x3001;^</td>
    </tr>
    <tr>        
        <td align="center" bgcolor="#ffffff">3</td>
        <td align="center" bgcolor="#ffffff">==&#x3001;!=&#x3001;<、<=、>&#x3001;&gt;=</、<=、></td>
    </tr>
    <tr>        
        <td align="center" bgcolor="#f5f2ee">2</td>
        <td align="center" bgcolor="#f5f2ee">&amp;&amp;</td>
    </tr>
    <tr>        
        <td align="center" bgcolor="#ffffff">1</td>
        <td align="center" bgcolor="#ffffff">||</td>
    </tr>
</table>

<p>&#x5F53;&#x7136;&#xFF0C;&#x4F60;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x4F7F;&#x7528;&#x62EC;&#x53F7;&#x6765;&#x4E34;&#x65F6;&#x63D0;&#x5347;&#x67D0;&#x4E2A;&#x8868;&#x8FBE;&#x5F0F;&#x7684;&#x6574;&#x4F53;&#x8FD0;&#x7B97;&#x4F18;&#x5148;&#x7EA7;&#x3002;</p>
<p>&#x5B9E;&#x4F8B;&#xFF1A;</p>
<pre><code class="lang-go"><span class="hljs-keyword">package</span> main

<span class="hljs-keyword">import</span> <span class="hljs-string">&quot;fmt&quot;</span>

<span class="hljs-keyword">func</span> main() {
    <span class="hljs-keyword">var</span> a <span class="hljs-keyword">int</span> = <span class="hljs-number">20</span>
    <span class="hljs-keyword">var</span> b <span class="hljs-keyword">int</span> = <span class="hljs-number">10</span>
    <span class="hljs-keyword">var</span> c <span class="hljs-keyword">int</span> = <span class="hljs-number">15</span>
    <span class="hljs-keyword">var</span> d <span class="hljs-keyword">int</span> = <span class="hljs-number">5</span>
    <span class="hljs-keyword">var</span> e <span class="hljs-keyword">int</span>

    e = (a + b) * c / d      <span class="hljs-comment">// ( 30 * 15 ) / 5</span>
    fmt.Printf(<span class="hljs-string">&quot;(a + b) * c / d &#x7684;&#x503C;&#x4E3A; : %d\n&quot;</span>, e)

    e = ((a + b) * c) / d;    <span class="hljs-comment">// (30 * 15 ) / 5</span>
    fmt.Printf(<span class="hljs-string">&quot;((a + b) * c) / d &#x7684;&#x503C;&#x4E3A;  : %d\n&quot;</span> , e)

    e = (a + b) * (c / d);   <span class="hljs-comment">// (30) * (15/5)</span>
    fmt.Printf(<span class="hljs-string">&quot;(a + b) * (c / d) &#x7684;&#x503C;&#x4E3A;  : %d\n&quot;</span>, e)

    e = a + (b * c) / d;     <span class="hljs-comment">//  20 + (150/5)</span>
    fmt.Printf(<span class="hljs-string">&quot;a + (b * c) / d &#x7684;&#x503C;&#x4E3A;  : %d\n&quot;</span> , e)  
}
</code></pre>
<p>&#x4EE5;&#x4E0A;&#x5B9E;&#x4F8B;&#x8FD0;&#x884C;&#x7ED3;&#x679C;&#xFF1A;</p>
<pre><code class="lang-sh">(a + b) * c / d &#x7684;&#x503C;&#x4E3A; : 90
((a + b) * c) / d &#x7684;&#x503C;&#x4E3A;  : 90
(a + b) * (c / d) &#x7684;&#x503C;&#x4E3A;  : 90
a + (b * c) / d &#x7684;&#x503C;&#x4E3A;  : 50
</code></pre>
<hr>
<h2 id="ps">PS</h2>
<ol>
<li><p>&#x6307;&#x9488;&#x53D8;&#x91CF; <strong><code>*</code></strong> &#x548C;&#x5730;&#x5740;&#x503C; <strong><code>&amp;</code></strong> &#x7684;&#x533A;&#x522B;
 &#x6307;&#x9488;&#x53D8;&#x91CF;&#x4FDD;&#x5B58;&#x7684;&#x662F;&#x4E00;&#x4E2A;&#x5730;&#x5740;&#x503C;&#xFF0C;&#x4F1A;&#x5206;&#x914D;&#x72EC;&#x7ACB;&#x7684;&#x5185;&#x5B58;&#x6765;&#x5B58;&#x50A8;&#x4E00;&#x4E2A;&#x6574;&#x578B;&#x6570;&#x5B57;&#x3002;&#x5F53;&#x53D8;&#x91CF;&#x524D;&#x9762;&#x6709; <strong><code>*</code></strong> &#x6807;&#x8BC6;&#x65F6;&#xFF0C;&#x624D;&#x7B49;&#x540C;&#x4E8E; <strong><code>&amp;</code></strong> &#x7684;&#x7528;&#x6CD5;&#xFF0C;&#x5426;&#x5219;&#x4F1A;&#x76F4;&#x63A5;&#x8F93;&#x51FA;&#x4E00;&#x4E2A;&#x6574;&#x578B;&#x6570;&#x5B57;&#x3002;</p>
<pre><code class="lang-go"> <span class="hljs-keyword">package</span> main

 <span class="hljs-keyword">func</span> main() {
     <span class="hljs-keyword">var</span> a <span class="hljs-keyword">int</span> = <span class="hljs-number">4</span>
     <span class="hljs-keyword">var</span> ptr *<span class="hljs-keyword">int</span>
     ptr = &amp;a
     <span class="hljs-built_in">println</span>(<span class="hljs-string">&quot;a&#x7684;&#x503C;&#x4E3A;&quot;</span>, a)    <span class="hljs-comment">// 4</span>
     <span class="hljs-built_in">println</span>(<span class="hljs-string">&quot;*ptr&#x4E3A;&quot;</span>, *ptr)  <span class="hljs-comment">// 4</span>
     <span class="hljs-built_in">println</span>(<span class="hljs-string">&quot;ptr&#x4E3A;&quot;</span>, ptr)    <span class="hljs-comment">// 824633794744</span>
 }
</code></pre>
</li>
<li><p>Go &#x7684;&#x81EA;&#x589E;&#xFF0C;&#x81EA;&#x51CF;&#x53EA;&#x80FD;&#x4F5C;&#x4E3A;&#x8868;&#x8FBE;&#x5F0F;&#x4F7F;&#x7528;&#xFF0C;&#x800C;&#x4E0D;&#x80FD;&#x7528;&#x4E8E;&#x8D4B;&#x503C;&#x8BED;&#x53E5;&#x3002;</p>
<pre><code class="lang-go"> a++ <span class="hljs-comment">// &#x8FD9;&#x662F;&#x5141;&#x8BB8;&#x7684;&#xFF0C;&#x7C7B;&#x4F3C; a = a + 1,&#x7ED3;&#x679C;&#x4E0E; a++ &#x76F8;&#x540C;</span>
 a-- <span class="hljs-comment">//&#x4E0E; a++ &#x76F8;&#x4F3C;</span>
 a = a++ <span class="hljs-comment">// &#x8FD9;&#x662F;&#x4E0D;&#x5141;&#x8BB8;&#x7684;&#xFF0C;&#x4F1A;&#x51FA;&#x73B0;&#x7F16;&#x8BD1;&#x9519;&#x8BEF; syntax error: unexpected ++ at end of statement</span>
</code></pre>
</li>
<li><p>&#x4F7F;&#x7528;&#x6307;&#x9488;&#x53D8;&#x91CF;&#x4E0E;&#x4E0D;&#x4F7F;&#x7528;&#x7684;&#x533A;&#x522B;&#xFF1A;</p>
<pre><code class="lang-go"> <span class="hljs-keyword">func</span> main(){
     <span class="hljs-keyword">var</span> a <span class="hljs-keyword">int</span> = <span class="hljs-number">4</span>
     <span class="hljs-keyword">var</span> ptr <span class="hljs-keyword">int</span>
     ptr = a 
     fmt.Println(ptr)    <span class="hljs-comment">//4</span>
     a = <span class="hljs-number">15</span>
     fmt.Println(ptr)    <span class="hljs-comment">//4</span>

     <span class="hljs-keyword">var</span> b <span class="hljs-keyword">int</span> = <span class="hljs-number">5</span> 
     <span class="hljs-keyword">var</span> ptr1 *<span class="hljs-keyword">int</span>
     ptr1 = &amp;b 
     fmt.Println(*ptr1)  <span class="hljs-comment">//5</span>
     b = <span class="hljs-number">15</span> 
     fmt.Println(*ptr1)  <span class="hljs-comment">//15</span>
 }
</code></pre>
</li>
</ol>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="../part7/" class="navigation navigation-prev " aria-label="Previous page: Go 语言常量">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="../part9/" class="navigation navigation-next " aria-label="Next page: Go 语言条件语句">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"Go 语言运算符","level":"1.9","depth":1,"next":{"title":"Go 语言条件语句","level":"1.10","depth":1,"path":"part9/README.md","ref":"part9/README.md","articles":[]},"previous":{"title":"Go 语言常量","level":"1.8","depth":1,"path":"part7/README.md","ref":"part7/README.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"part8/README.md","mtime":"2021-01-19T11:30:22.598Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-01-21T06:29:04.898Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

